home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.19971216-19980424 / 000247_news@newsmaster….columbia.edu _Wed Feb 18 11:33:28 1998.msg < prev    next >
Internet Message Format  |  2020-01-01  |  4KB

  1. Return-Path: <news@newsmaster.cc.columbia.edu>
  2. Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.35.30])
  3.     by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id LAA04642
  4.     for <kermit.misc@watsun.cc.columbia.edu>; Wed, 18 Feb 1998 11:33:27 -0500 (EST)
  5. Received: (from news@localhost)
  6.     by newsmaster.cc.columbia.edu (8.8.5/8.8.5) id LAA17814
  7.     for kermit.misc@watsun; Wed, 18 Feb 1998 11:33:27 -0500 (EST)
  8. Path: news.columbia.edu!watsun.cc.columbia.edu!fdc
  9. From: fdc@watsun.cc.columbia.edu (Frank da Cruz)
  10. Newsgroups: comp.protocols.kermit.misc
  11. Subject: Re: how can i use kermit and ppp
  12. Date: 18 Feb 1998 16:33:23 GMT
  13. Organization: Columbia University
  14. Lines: 59
  15. Message-ID: <6cf2gj$8nn$1@apakabar.cc.columbia.edu>
  16. References: <34E9F085.1FFC@bnr.ca> <6cesoe$44n@glas.apc.org>
  17. NNTP-Posting-Host: watsun.cc.columbia.edu
  18. Xref: news.columbia.edu comp.protocols.kermit.misc:8437
  19.  
  20. In article <6cesoe$44n@glas.apc.org>,
  21. Dmitry the Zuryanovich <dz@mir.glas.apc.org> wrote:
  22. : Malik Ajani (ajani@bnr.ca) wrote:
  23. : : how can i use kermit and ppp together on linux
  24. : : to call my isp.
  25. :
  26. >From the Kermit FAQ:
  27.  
  28.   http://www.columbia.edu/kermit/faq.html
  29.   ftp://kermit.columbia.edu/kermit/faq.txt
  30.  
  31. 27 How Can I Exit from C-Kermit without Hanging Up?
  32.  
  33. Many people want to be able to make a dialout connection with UNIX C-Kermit,
  34. but then use some other software on the connection that C-Kermit made.  For
  35. example, they want to use C-Kermit as their SLIP or PPP dialer.  But they
  36. quickly find that when they exit from C-Kermit, that the connection is gone
  37. before they can start the other application.
  38.  
  39. It is a fundamental property of UNIX (and VMS, and Windows 95 and NT, and most
  40. other modern operating systems) that when a process exits, then every file that
  41. was opened by that process is automatically closed by the operating system.  In
  42. most cases, closing a terminal device (such as a dialout serial port) hangs up
  43. the modem (by turning off the DTR signal).  There is nothing the process can do
  44. about it.
  45.  
  46. However, many workarounds are possible.  Here are just a few:
  47.  
  48.    - If your C-Kermit version supports the REDIRECT command, use it to
  49.      start the desired application (e.g. "redirect pppd").  The REDIRECT
  50.      command runs the given application with its standard input and output
  51.      redirected to the communications channel opened by C-Kermit's most
  52.      recent SET LINE or SET HOST command.
  53.  
  54.    - Tell C-Kermit to SET MODEM HANGUP-METHOD RS232, and then configure
  55.      your modem to ignore DTR (not recommended).  "Using C-Kermit", 2nd
  56.      Ed., p.86.
  57.  
  58.    - When opening the device first from another application, feed the file
  59.      descriptor for the device to C-Kermit using the "-l" (lowercase
  60.      letter L) command-line option followed by the numeric file
  61.      descriptor, e.g.  "kermit -l 6".  Then Kermit will not attempt to
  62.      open the device, nor to change its characteristics, nor to close it
  63.      when done, and when Kermit exits, it will still be available to the
  64.      invoking process.  "Using C-Kermit", 2nd Ed., p.469.
  65.  
  66.    - When opening the device with C-Kermit, find out the file descriptor
  67.      of the open device (it is given by C-Kermit's \v(ttyfd) variable) and
  68.      then run ("!")  your other program from the C-Kermit prompt, feeding
  69.      it the file descriptor, e.g. through shell redirection or a command
  70.      line option (the method depends on the other program, the
  71.      capabilities of the shell, etc).  "Using C-Kermit", 2nd Ed., p.356
  72.  
  73.    - In UNIX, after Kermit makes the connection, type "show comm" to find
  74.      out the filename of the lock file.  Then suspend Kermit, delete the
  75.      lock file, then start the other program and tell it to open the same
  76.      tty device.
  77.  
  78. - Frank